<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
		<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/style.css"/>
		<link href="assets/css/codemirror.css" rel="stylesheet">
		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
        <script src="js/displayPart.js" type="text/javascript"></script>
		<script>
		$("#pd").click(function(){
				window.location.href="inventory_adjustment.html";
			})
		</script>
<title>仓库转移</title>
</head>

<body>
<div class="margin clearfix">
 <div class="Shops_Audit">
    <!---->
      <div class="border clearfix"> <span class="l_f"> <a href="javascript:;" id="property_add" class="btn btn-warning"><i class="icon-plus"></i>移库操作</a>  </span> </div>
      <!---->
   
   <!--申请列表-->
   <div class="audit_list">
    <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
		    <th width="80px">序号</th> 
			<th width="80px">移库单号</th> 
			<th width="80px">移出仓库</th>  
			<th width="80px">移入仓库</th>    
			<th width="100">转移商品</th>        
			<th width="100">转移数量</th>
			<th  width="80px">移库原因</th>
			<th width="100">移库负责人</th>
			<th width="100">联系电话</th>
			<th width="200px">移库时间</th>
			<th width="100px">操作</th>
				
			</tr>
		</thead>
	<tbody>
      <tr>
	  <td>1</td>
	  <td>120145213</td>  
	   <td>宿迁仓</td>   
       <td>和田仓</td>
	   <td>旭派48V电池</td>   
       <td>500</td>
	   <td>爆仓</td>  
       <td>张三</td>
       <td>15234685421</td>      
       <td>2016/10/12 15:00:00</td>
         <td class="td-manage">
			<a style="text-decoration:none" class="btn btn-xs btn-success property_list"  href="javascript:;" title="移库详情"><i class="icon-list bigger-120"></i></a>
		</td>
      </tr>
       <tr>
	  <td>2</td>
	  <td>120145213</td>
	   <td>宿迁仓</td>   
       <td>和田仓</td>
	   <td>旭派48V电池</td>   
       <td>500</td>
	   <td>爆仓</td>  
       <td>张三</td>
       <td>15234685421</td>      
       <td>2016/10/12 15:00:00</td>
         <td class="td-manage">
			<a style="text-decoration:none" class="btn btn-xs btn-success property_list" href="javascript:;" title="移库详情"><i class="icon-list bigger-120"></i></a>
		</td>
      </tr>
	  <tr>
	  <td>3</td>
	  <td>120145213</td>
	   <td>宿迁仓</td>   
       <td>和田仓</td>
	   <td>旭派48V电池</td>   
       <td>500</td>
	   <td>爆仓</td>  
       <td>张三</td>
       <td>15234685421</td>    
       <td>2016/10/12 15:00:00</td>
         <td class="td-manage">
			<a style="text-decoration:none" class="btn btn-xs btn-success property_list"  href="javascript:;" title="移库详情"><i class="icon-list bigger-120"></i></a>
		</td>
      </tr>
	  <tr>
	  <td>4</td>
	  <td>120145213</td>
	   <td>宿迁仓</td>   
       <td>和田仓</td>
	   <td>旭派48V电池</td>   
       <td>500</td>
	   <td>爆仓</td>  
       <td>张三</td>
       <td>15234685421</td>     
       <td>2016/10/12 15:00:00</td>
         <td class="td-manage">
			<a style="text-decoration:none" class="btn btn-xs btn-success property_list"  href="javascript:;" title="移库详情"><i class="icon-list bigger-120"></i></a>
		</td>
      </tr>
	  <tr>
	  <td>5</td>
	  <td>120145213</td>
	   <td>宿迁仓</td>   
       <td>和田仓</td>
	   <td>旭派48V电池</td>   
       <td>500</td>
	   <td>爆仓</td>  
       <td>张三</td>
       <td>15234685421</td>  
       <td>2016/10/12 15:00:00</td>
         <td class="td-manage">
			<a style="text-decoration:none" class="btn btn-xs btn-success property_list"  href="javascript:;" title="移库详情"><i class="icon-list bigger-120"></i></a>
		</td>
      </tr>
	  <tr>
	  <td>6</td>
	  <td>120145213</td>
	   <td>宿迁仓</td>   
       <td>和田仓</td>
	   <td>旭派48V电池</td>   
       <td>500</td>
	   <td>爆仓</td>  
       <td>张三</td>
       <td>15234685421</td>      
       <td>2016/10/12 15:00:00</td>
         <td class="td-manage">
			<a style="text-decoration:none" class="btn btn-xs btn-success property_list"  href="javascript:;" title="移库详情"><i class="icon-list bigger-120"></i></a>
		</td>
      </tr>
    </tbody>
    </table>
   
   </div>
 </div>
</div>
<!--销售区域分配图层-->
<div class="add_menber" id="add_menber_style" style="display:none">
  <ul class=" page-content">
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>移出库名：</label>
      <div class="formControls " style="width:280px;">
         <select style="margin-left:10px;">
		 	<option>请选择仓库名</option>
			<option>宿迁仓</option>
			<option>和田仓</option>
		 </select>
      </div>
    </div>
	<div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>转移商品名称：</label>
      <div class="formControls ">
        <input type="text" class="input-text" value="" placeholder="" id="user-name" name="转移商品名称">
      </div>
    </div>
	<div class="Operate_cont clearfix">
            <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
		 	<th width="70">序号</th>
			<th width="100">产品码</th>              
			<th width="100">商品名称</th>
			<th width="100">仓库名称</th>   
			<th width="100">货区名称</th>
			<th width="100">货架编号</th>
			<th width="100">货位编号</th>
			</tr>
		</thead>
	<tbody>
      <tr>
	   <td>1</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>宿迁仓</td>
       <td>成品区</td>      
       <td>12134</td>
	   <td>121</td>
       </tr>
      <tr>
	   <td>2</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>宿迁仓</td>
       <td>成品区</td>      
       <td>12134</td>
	   <td>122</td>
       </tr>
	   </tbody>
	   </table>
	   </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>移入库名：</label>
      <div class="formControls ">
        <select style="margin-left:10px;">
		 	<option>请选择仓库名</option>
			<option>宿迁仓</option>
			<option>和田仓</option>
		 </select>
      </div>
    </div>
	<div class="Operate_cont clearfix">
            <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
		 	<th width="70">序号</th>
			<th width="100">产品码</th>              
			<th width="100">商品名称</th>
			<th width="100">入库库名</th>   
			<th width="100">入库区域</th>
			<th width="100">入库货架</th>
			<th width="100">入库货位</th>
			<th width="100">状态</th>
			<th width="100">确认入库</th>
			</tr>
		</thead>
	<tbody>
      <tr>
	   <td>1</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>和田仓</td>
       <td><select name="select_name" style="margin-left:10px;">
           <option>请选择货区</option>
              <option>成品区</option>
              <option>隔离区</option>
			  <option>收货区</option>
              <option>零货区</option>
          </select></td>      
       <td><select name="select_name" style="margin-left:10px;">
            <option >请选择货架</option>
            <option >12134</option>
			<option >12354</option>
			<option >12543</option>
          </select></td>
	   <td><select name="select_name" style="margin-left:10px;">
            <option >请选择货位</option>
            <option >121</option>
			<option >122</option>
			<option >123</option>
          </select></td>
		<td class="td-status"><span class="label label-defaunt radius">未确认</span></td>
        <td class="td-manage"><a style="text-decoration:none" class="btn btn-xs btn-success  " onClick="member_start(this,id)" href="javascript:;" title="已确认"><i class="icon-ok bigger-120"></i></a> </td>
       </tr>
      <tr>
	   <td>2</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>和田仓</td>
       <td><select name="select_name" style="margin-left:10px;">
           <option>请选择货区</option>
              <option>成品区</option>
              <option>隔离区</option>
			  <option>收货区</option>
              <option>零货区</option>
          </select></td>      
       <td><select name="select_name" style="margin-left:10px;">
            <option >请选择货架</option>
            <option >12134</option>
			<option >12354</option>
			<option >12543</option>
          </select></td>
	   <td><select name="select_name" style="margin-left:10px;">
            <option >请选择货位</option>
            <option >121</option>
			<option >122</option>
			<option >123</option>
          </select></td>
		<td class="td-status"><span class="label label-defaunt radius">未确认</span></td>
        <td class="td-manage"><a style="text-decoration:none" class="btn btn-xs btn-success " onClick="member_start(this,id)" href="javascript:;" title="已确认"><i class="icon-ok bigger-120"></i></a> </td>
       </tr>
	   </tbody>
	   </table>
	   </div>
	   
    <div class="Operate_cont clearfix">
		<ul class="Info_style clearfix" style="width:700px; margin-left:30px;">
			<li ><label class="label_name">负责人：</label> <span class="name"><input type="text" class="input-text" value="" placeholder="" id="user-name" name="移库负责人"></span></li>
			<li ><label class="label_name">联系电话：</label><span class="name"><input type="text" class="input-text" value="" placeholder="" id="user-name" name="联系电话"></span></li>
			<li><label class="label_name">移库时间：</label> <span class="name"> <input type="text" class="inline laydate-icon" value="" id="start3"  name="移库时间"></span></li>
			<li ><label class="label_name">转移数量：</label><span class="name"><input type="text" class="input-text" value="2" placeholder="" id="user-name" name="转移数量"></span></li>
			<li style="width:700px;"><label class="label_name">移库原因：</label><span class="name"><textarea style="width:505px;height:100px;"  name="移库原因"></textarea></span></li>
		</ul>
     </div>
  </ul>
</div>
<!--销售区域分配图层-->
<div class="list_menber" id="list_menber_style" style="display:none">
  <ul class=" page-content">
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>移出库名：</label>
      <div class="formControls " style="width:280px;">
         <span style="margin-left:10px;">宿迁仓</span>
      </div>
    </div>
	<div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>转移商品名称：</label>
      <div class="formControls ">
        <span style="margin-left:10px;">旭派12V电池</span>
      </div>
    </div>
	<div class="Operate_cont clearfix">
            <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
		 	<th width="70">序号</th>
			<th width="100">产品码</th>              
			<th width="100">商品名称</th>
			<th width="100">出库库名</th>   
			<th width="100">出库货区</th>
			<th width="100">出库货架</th>
			<th width="100">出库货位</th>
			</tr>
		</thead>
	<tbody>
      <tr>
	   <td>1</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>宿迁仓</td>
       <td>成品区</td>      
       <td>12134</td>
	   <td>121</td>
       </tr>
      <tr>
	   <td>2</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>宿迁仓</td>
       <td>成品区</td>      
       <td>12134</td>
	   <td>122</td>
       </tr>
	   </tbody>
	   </table>
	   </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>移入库名：</label>
      <div class="formControls ">
         <span style="margin-left:10px;">和田仓</span>
      </div>
    </div>
	<div class="Operate_cont clearfix">
            <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
		 	<th width="70">序号</th>
			<th width="100">产品码</th>              
			<th width="100">商品名称</th>
			<th width="100">入库库名</th>   
			<th width="100">入库区域</th>
			<th width="100">入库货架</th>
			<th width="100">入库货位</th>
			</tr>
		</thead>
	<tbody>
      <tr>
	   <td>1</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>和田仓</td>
       <td>成品区</td>      
       <td>12134</td>
	   <td>121</td>
       </tr>
      <tr>
	   <td>2</td>
	   <td>1210121</td>
       <td>旭派12V电池</td>
       <td>和田仓</td>
       <td>成品区</td>      
       <td>12134</td>
	   <td>121</td>
       </tr>
	   </tbody>
	   </table>
	   </div>
	   
    <div class="Operate_cont clearfix">
		<ul class="Info_style clearfix" style="width:700px; margin-left:30px; float:left;">
			<li style="width:300px; float:left;"><label class="label_name">负责人：</label> <span class="name"><span style="margin-left:10px;">张三</span></span></li>
			<li style="width:300px; float:left;"><label class="label_name">联系电话：</label><span class="name"><span style="margin-left:10px;">15234685421</span></span></li>
			<li style="width:300px; float:left;"><label class="label_name">移库时间：</label> <span class="name"><span style="margin-left:10px;">2016-12-23</span></span></li>
			<li style="width:300px; float:left;"><label class="label_name">转移数量：</label><span class="name"><span style="margin-left:10px;">2</span></span></li>
			<li style="width:700px;  float:left;"><label class="label_name">移库原因：</label><span class="name"><span style="margin-left:10px;">仓库大</span></span></li>
		</ul>
     </div>
  </ul>
</div>
</body>
</html>
<script>
laydate({
elem: '#start3',
event: 'focus' 
});	
/*区域分配-添加*/
 $('#property_add').on('click', function(){
    layer.open({
        type: 1,
        title: '移库申请',
		maxmin: true, 
		shadeClose: true, //点击遮罩关闭层
        area : ['1000px' , ''],
        content:$('#add_menber_style'),
		btn:['提交','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('申请成功！',{
               title: '提示框',				
			icon:1,		
			  });
			   layer.close(index);	
		  }		  		     				
		}
    });
});
/*区域分配-添加*/
 $('.property_list').on('click', function(){
    layer.open({
        type: 1,
        title: '移库详情',
		maxmin: true, 
		shadeClose: true, //点击遮罩关闭层
        area : ['1000px' , ''],
        content:$('#list_menber_style'),
		btn:['返回'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".list_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			   layer.close(index);	
		  }		  		     				
		}
    });
});
$(function () {  
        $(".displayPart").displayPart();  
   });
$(function() {
		var oTable1 = $('#sample-table').dataTable( {
		//"aaSorting": [],//默认第几个排序
		"bStateSave": true,//状态保存
		//"dom": 't',
		"bFilter":false,
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[1,2,3,4,5,6,7,8,9,10,11]}// 制定列不参与排序
		] } );
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
})
/*店铺-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',{icon:0,},function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
/*仓库-停用*/
function member_start(obj,id){
	layer.confirm('确认要移库吗？',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已移库</span>');
		$(obj).remove();
		layer.msg('已停用!',{icon: 5,time:1000});
	});
}

//面包屑返回值
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('.Refund_detailed').on('click', function(){
	var cname = $(this).attr("title");
	var chref = $(this).attr("href");
	var cnames = parent.$('.Current_page').html();
	var herf = parent.$("#iframe").attr("src");
    parent.$('#parentIframe').html(cname);
    parent.$('#iframe').attr("src",chref).ready();;
	parent.$('#parentIframe').css("display","inline-block");
	parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
	//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
    parent.layer.close(index);
	
});

</script>
